import {
  WorkCategoryEnum,
  MediaTypeEnum,
  WorkStatusEnum,
} from '../entities/work.entity';

/**
 * 作品响应 DTO
 */
export class WorkResponseDto {
  id: number;
  title: string;
  description: string;
  category: WorkCategoryEnum;
  status: WorkStatusEnum;
  isPublic: boolean;
  mediaType: MediaTypeEnum;
  imagesUrls?: string[];
  videoUrl?: string;
  videoCover?: string;
  tags?: string[];
  viewsCount: number;
  likesCount: number;
  collectionsCount: number;
  commentsCount: number;
  sharesCount: number;
  authorId: number;
  location?: string;
  latitude?: number;
  longitude?: number;
  publishedAt?: Date;
  createdAt: Date;
  updatedAt: Date;

  // 作者信息（可选，根据需要返回）
  author?: {
    id: number;
    username: string;
    avatar?: string;
  };
}
